package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.SysOrderDept;
import com.ruoyi.system.service.SysOrderDeptService;
import com.ruoyi.system.mapper.SysOrderDeptMapper;
import com.ruoyi.system.vo.req.order.OrderDataGroupResponseDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
* @author xdh
* @description 针对表【sys_order_user】的数据库操作Service实现
* @createDate 2024-07-02 10:48:08
*/
@Service
public class SysOrderDeptServiceImpl extends ServiceImpl<SysOrderDeptMapper, SysOrderDept>
    implements SysOrderDeptService {

    @Autowired
    private SysOrderDeptMapper sysOrderDeptMapper;

    @Override
    public List<OrderDataGroupResponseDTO>  selectCountGroupByMonth(Long deptId) {
        return sysOrderDeptMapper.selectCountGroupByMonth(deptId);
    }

    @Override
    public Integer selectCountBeforeMonth(String last12Month, Long deptId) {
        return sysOrderDeptMapper.selectCountBeforeMonth(last12Month,deptId);
    }
}




